package com.bdqn.dao;

import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    /**
     * 查询用户列表
     *
     * @param sysUser
     * @return
     */
    public List<SysUser> selectSysUserList(SysUser sysUser);

    /**
     * 保存用户
     *
     * @param sysUser
     * @return
     */
    public int add(SysUser sysUser);

    public int delete(@Param("id") Integer id);


    public int update(SysUser sysUser);


    /**
     * 根据号码和密码查询
     */
    SysUser queryByAccountAndPwd(@Param("account") String account, @Param("password") String password);
}

